package cn.dt70.service;

import cn.dt70.pojo.AqbCreditor;

import java.util.Date;
import java.util.List;

public interface AqbCreditorService {


    //查询所有债权
    List<AqbCreditor> findAllCreditorById(Integer transferStatus);

    //根据账户id查询转让中债权
    List<AqbCreditor> findCreditorById(Integer id,Integer querytime) throws Exception;

    //根据账户id查询已转让债权
    List<AqbCreditor> findCreditorDoneById(Integer id,Integer querytime) throws Exception;

    //添加债权
    boolean addCreditor(AqbCreditor aqbCreditor) throws Exception;


    //根据id查债权
    AqbCreditor findCreditorByCid(Integer cId) throws Exception;

    //承接债权
    boolean updateCreditorById(AqbCreditor aqbCreditor) throws Exception;

    //查询一段时间的转让中债权
    List<AqbCreditor> findCreditorByIdForTime(Integer id, Date begin,Date end) throws Exception;

    //查询一段时间的已转让债权
    List<AqbCreditor> findCreditorDoneByIdForTime(Integer id, Date begin,Date end) throws Exception;

}
